package com.is.add.enmus;


import com.is.add.util.KeyValue;

import java.util.ArrayList;
import java.util.List;

/**
 * 时间类型
 * Created by jackie on 2016/5/7.
 */
public enum TimeType {
    examineTime("消费时间"),orderTime("订单时间"),useTime("验证时间");

    private String text;

    TimeType(String text) {
        this.text = text;
    }

    public String getText() {
        return text;
    }

    public static List<KeyValue> toList() {
        List<KeyValue>  list = new ArrayList<>();
        for (TimeType v: TimeType.values()) {
            list.add(new KeyValue(v.name(), v.getText()));
        }
        return list;
    }
}
